package com.justech.eat.controller.req;

import com.justech.eat.util.validator.Radio;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/*
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
*/

/**
 * @program: eat-service
 * @description: 订餐明细
 * @author: feifei.li
 * @create: 2020-05-26 09:38
 **/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class OrderDetailReq {

    @NotEmpty(message = "报餐日期不能为空")
    private String date;

    @NotBlank(message = "用户工号不能为空")
    private String jobNumber;

    /** 午餐 **/
    @Radio(values={"0","1"},message = "输入0或1")
    @NotNull(message="未指定午餐参数")
    private int lunch;

    /** 晚餐 */
    @Radio(values={"0","1"},message = "输入0或1")
    @NotNull(message="未指定晚餐参数")
    private int dinner;

    /** 夜餐 */
    @Radio(values={"0","1"},message = "输入0或1")
    @NotNull(message="未指定夜餐参数")
    private int meal;

    /** 夜宵 */
    @Radio(values={"0","1"},message = "输入0或1")
    @NotNull(message="未指定宵夜参数")
    private int night;
}
